<?php

namespace api\controller;

// +----------------------------------------------------------------------
// | 过滤条件数据控制层
// +----------------------------------------------------------------------

use common\controller\VerifyController;
use common\service\FilterService;
use think\Request;

class FilterController extends VerifyController
{
    /** @var FilterService */
    private $filterService;

    public function _initialize()
    {
        $this->filterService = new FilterService();
    }

    /**
     * 任务库快速筛选条件
     * @param Request $request
     * @return \think\Response
     */
    public function taskQuickSearch(Request $request)
    {
        $res = $this->filterService->taskQuickSearch();
        return json(success_response('OK', $res));
    }
}
